package com.ruoyi.mqtt.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {
    "com.ruoyi.mqtt.annotation",
    "com.ruoyi.mqtt.aspect",
    "com.ruoyi.mqtt.config",
    "com.ruoyi.mqtt.handler",
    "com.ruoyi.mqtt.model",
    "com.ruoyi.mqtt.netty",
    "com.ruoyi.mqtt.service"
})
@ConditionalOnProperty(prefix = "mqtt", name = "enabled", havingValue = "true", matchIfMissing = true)
public class MqttAutoConfiguration {
    // 自动配置逻辑
} 